﻿@section css
{
    <link rel="stylesheet" href="~/Content/bootstrap.min.css" />
    <link rel="stylesheet" href="~/Content/bootstrap-datepicker3.css" />
    @Styles.Render("~/Content/Css")
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript" language="javascript" src="~/Scripts/bootstrap.min.js"></script>
    <script type="text/javascript" language="javascript" src="~/Scripts/bootstrap-datepicker.js"></script>

    <script>
        $(function () {
            $("#PublishDate").datepicker({ language: 'fr' });
            $("#ExpireDate").datepicker({ language: 'fr' });
        });
        $("#Title").bind("blur", function () {
            $("#UrlTitle").val(this.value);
        });
    </script>

}

@if (!Request.IsAjaxRequest())
{
    <h2>@ViewBag.Title</h2>
}

@Html.Partial("PageCreation")

@if (!Request.IsAjaxRequest())
{
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
}